(function ReflectGet() {
    const target = {
        _name: "target",
        get name() {
            return this._name;
        },
    };
    const receiver = {
        _name: "receiver",
    };
    const start = new Date();
    for (let i = 0; i < 100000; i++) {
        Reflect.get(target, "name", receiver);
    }
    const end = new Date();
    print(`Reflect.get: ${end - start} ms`);
})();

(function ReflectSet() {
    const target = {};
    const start = new Date();
    for (let i = 0; i < 100000; i++) {
        Reflect.set(target, "name", "Bob");
    }
    const end = new Date();
    print(`Reflect.set: ${end - start} ms`);
})();

(function ReflectHas() {
    const target = {
        name: "Bob",
    };
    const start = new Date();
    for (let i = 0; i < 100000; i++) {
        Reflect.has(target, "name");
    }
    const end = new Date();
    print(`Reflect.has: ${end - start} ms`);
})();
